# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=index
pkgver=2.1.2
pkgrel=0
pkgdesc="Index file manager based on MauiKit"
# armhf blocked by qt5-qtdeclarative
# s390x and riscv64 blocked by mauikit
arch="all !armhf !s390x !riscv64"
url="https://invent.kde.org/kde/index-fm"
license="GPL-2.0-or-later"
depends="
	mauikit-imagetools
	"
makedepends="
	extra-cmake-modules
	ki18n-dev
	kio-dev
	knotifications-dev
	kservice-dev
	mauikit-dev
	mauikit-filebrowsing-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="https://download.kde.org/stable/maui/index/$pkgver/index-fm-$pkgver.tar.xz"
options="!check" # No tests available
builddir="$srcdir/$pkgname-fm-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
6940bc466e6510aa16e33b6d7ff650a82573326c5e8f9d4da2a9f044d779ed1e669f14a82ac0358f0aadd81da43bf78d3f49453a036deef6f783d87dd921f8d8  index-fm-2.1.2.tar.xz
"
